#ifndef PAGEOTHERTESTS_H
#define PAGEOTHERTESTS_H

#include <QWidget>
#include <QTimer>
#include <QLabel>
#include "global_def.h"

namespace Ui {
class PageOtherTests;
}

class PageOtherTests : public QWidget
{
    Q_OBJECT

public:
    explicit PageOtherTests(QWidget *parent = nullptr);
    ~PageOtherTests();
    void setHSCBStat(uint8_t index, uint8_t stat);
signals:
    void returnToMaintMenu();
    void signal_AuxCompStart(bool xStart);
    void signal_NSKCutOff(bool xCut);
    void signal_WheelTreadClean(bool xStart);
    void signal_SwitchToNet(bool xChange);
    void signal_EDBCut(uint8_t index, bool xCut);
    void signal_HSCB_Open(bool xOpen);
    void signal_HSCB_Close(bool xClose);
private slots:
    void on_Btn_Return_clicked();
    void on_Button_AuxCompressor_Start_clicked();
    void on_Button_NSK_clicked(bool checked);
    void on_Button_SwitchToNet_clicked(bool checked);
    void on_Button_WheelTreadClean_clicked();
    void on_Button_EDBCut_2_clicked(bool checked);
    void on_Button_EDBCut_3_clicked(bool checked);
    void on_Button_EDBCut_4_clicked(bool checked);
    void on_Button_EDBCut_5_clicked(bool checked);
    void on_Button_HSCB_Close_clicked();
    void on_Button_HSCB_Open_clicked();
private:
    Ui::PageOtherTests *ui;
    void setHSCBLabelStat(QLabel *hscb_label,uint8_t stat);
};

#endif // PAGEOTHERTESTS_H
